﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditTourPackage.aspx.cs" Inherits="DLV.BackEnd.Pages.EditTourPackage" %>

<asp:content id="Content1" contentplaceholderid="placeHolderContent" runat="server">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
    
   <div id="toolbar-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>
		<div class="m">
		    <div id="toolbar" class="toolbar">
			    <table class="toolbar">
			        <tbody>
					    <tr>
						    <td id="toolbar-save" class="button">
						        <asp:LinkButton ID="lbtSave" runat="server" Text="" onclick="lbtSave_Click" CssClass="toolbar">
					                <span id="Span1" title="Save" class="icon-32-save" runat="server"></span>Lưu
					            </asp:LinkButton>
						    </td>
						    <td id="toolbar-cancel" class="button">
						        <asp:LinkButton ID="lbtClose" runat="server" Text="" onclick="lbtClose_Click" 
                                    CssClass="toolbar" CausesValidation="False">
					                <span id="Span2" title="Close" class="icon-32-cancel" runat="server"></span>Thoát
					            </asp:LinkButton>
						    </td>
					    </tr>
				    </tbody>
			    </table>
		    </div>
			<div class="header" style="padding-left: 0;">Thêm mới/chỉnh sửa gói tour</div>
			<div class="clr"></div>
		</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
	</div>
    <div class="tour-package">
        <div id="element-box">
            <div class="tp-control m">
                <table class="adminform">
                    <tr>
						<td colspan="2">
                            <div id="ErorMessage" style="color: Red;line-height: 150%;"></div>
                        </td>
					</tr>
                    <tr>
                        <td style="width: 10%;">Tên gói tour:</td>
                        <td>
                            <asp:TextBox ID="txtTourPackageName" runat="server" Width="500px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Mã gói tour:</td>
                        <td>
                            <asp:TextBox ID="txtTourPackageCode" runat="server" Width="500px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Mô tả:</td>
                        <td>
                            <asp:TextBox ID="txtDescription" runat="server" Width="500px" Height="100px" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>Lịch trình:</td>
                        <td>
                            <asp:DropDownList ID="ddlSchedule" runat="server" Width="513px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>Thị trường:</td>
                        <td>
                            <asp:DropDownList ID="ddlMartName" runat="server" Width="513px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>Tình trạng</td>
                        <td>
                            <asp:DropDownList ID="ddlStatus" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>Người tạo</td>
                        <td>
                            <asp:DropDownList ID="ddlAdminUser" runat="server" Width="200px"></asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
       
    </div>

  <script type="text/javascript">
        $('#<%=lbtSave.ClientID %>').click(function () {
            $("#ErorMessage").html('');
            var rtnValue = validate($("#<%= txtTourPackageName.ClientID %>"), $("#ErorMessage"), "Vui lòng nhập tên gói tour<br\>")
                    && validate($("#<%= txtTourPackageCode.ClientID %>"), $("#ErorMessage"), "Vui lòng nhập mã gói tour<br\>")
                    && validate($("#<%= txtDescription.ClientID %>"), $("#ErorMessage"), "Vui lòng nhập mô tả gói tour<br\>")
                    && validateDropdown($("#<%=ddlSchedule.ClientID %>"), $("#ErorMessage"), "Vui lòng chọn lịch trình<br\>")
                    && validateDropdown($("#<%=ddlMartName.ClientID %>"), $("#ErorMessage"), "Vui lòng chọn thị trường<br\>");
            return rtnValue;
        });
    </script>
</asp:content>
